{% extends "base.html" %}
{% block pageid %}search{% endblock%}
{% block title %}About TeXample.net{% endblock %}



{% block content-main %}


{% if query %}
    <h1>Search results</h1>
    <div id="cse-search-results">
      <div id="cse-search-results-js-required">
        TeXample.net uses Google Custom Search, which
        requires Javascript. If your results don't appear here shortly, please
        <a href="http://www.google.com/cse?{{ query_string|escape }}">view the results on Google's site</a>. 
      </div>
    </div>
   <div id="cse-search-results"></div>
<script type="text/javascript">
 var googleSearchMessage = document.getElementById("cse-search-results-js-required");
 googleSearchMessage.parentNode.removeChild(googleSearchMessage);
  var googleSearchIframeName = "cse-search-results";
  
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 600;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>


  {% else %}
    <h1>Search</h1>
    <form action="/search/" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="008133027829266614561:kc0rxma4h7e" />
    <input type="hidden" name="cof" value="FORID:9" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>

  {% endif %}
{% endblock %}


